import { registerMicroApps, start } from 'qiankun'

const loader = () => {
    // console.log(loading);
}

registerMicroApps([
  {
      name: 'm-vue',
      entry: '//localhost:8080',
      container: '#container',
      activeRule: '/vue',
      loader
  },
  {
      name: 'm-react',
      entry: 'localhost:3001',
      container: '#container',
      activeRule: '/react',
      loader
  },{
      beforeLoad: () => {
          console.log('加载前');
      },
      beforeMount: () => {
          console.log('挂载前');
      },
      beforeUnmount: () => {
        console.log('销毁前');
      },
      afterUnmount: () => {
          console.log('销毁后');
      }
  }
])

start()